-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pluggable transfers and multipart transfer implementation #604
base: master
Are you sure you want to change the base?
Pluggable transfers and multipart transfer implementation #604
Conversation
a878a3c
to
378236c
Compare
* IfFileIsLocal is not used anymore as it was handling just one type of transport * Switched to IfTransferType permission generators * Note: needs inveniosoftware/invenio-records-resources#604
Connected pull requests: RFC 0072 |
invenio_records_resources/proxies.py
Outdated
@@ -21,3 +31,7 @@ | |||
lambda: current_app.extensions["invenio-records-resources"].notification_registry | |||
) | |||
"""Helper proxy to get the current notifications registry.""" | |||
|
|||
current_transfer_registry: "TransferRegistry" = LocalProxy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normally invenio does not add type checks. to be consistent with the rest of invenio i would remove : "TransferRegistry"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and i saw there are a lot of type hints in other files too
* Implementation of RFC 0072 - Pluggable Transfer Types for Record Files * Pluggable transfer types in invenio_records_resources/services/files/transfers * Implementation of multipart transfer in the same place * Permission generator for per-transfer-type permissions Co-authored-by: Mirek Simek <[email protected]>
378236c
to
29f5365
Compare
* Implementation of RFC 0072 - Pluggable Transfer Types for Record Files * Needs inveniosoftware/invenio-records-resources#604
* Implementation of RFC 0072 - Pluggable Transfer Types for Record Files * Needs inveniosoftware/invenio-records-resources#604
* Implementation of RFC 0072 - Pluggable Transfer Types for Record Files * Needs inveniosoftware/invenio-records-resources#604
* IfFileIsLocal is not used anymore as it was handling just one type of transport * Switched to IfTransferType permission generators * Note: needs inveniosoftware/invenio-records-resources#604
* IfFileIsLocal is not used anymore as it was handling just one type of transport * Switched to IfTransferType permission generators * Note: needs inveniosoftware/invenio-records-resources#604
* Implementation of RFC 0072 - Pluggable Transfer Types for Record Files * Needs inveniosoftware/invenio-records-resources#604
Description
This PR implements RFC 0072—Pluggable Transfer Types for Record Files. It provides transfer classes for all the built-in transfers, a transfer registry, and a transfer-type-aware permission generator.
This PR should be merged together with similar PRs for invenio-rdm-records, invenio-s3, and docs-invenio-rdm.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: